package cn.edu.ustc.xrovers.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table
public class IncomeStatement {

	private Integer id;
	private int year;
	private double oi;//营业收入
	private double oc;//营业成本
	private double op;//营业利润
	private double noi;//营业外收入
	private double tp;//利润总额
	private double ite;//所得税费用
	private double np;//净利润
	private Company company;
	
	@ManyToOne
	@JoinColumn(name="Company_ID")
	public Company getCompany() {
		return company;
	}
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Integer getId() {
		return id;
	}
	@Column(name="Inc_IncometaxExpense")
	public double getIte() {
		return ite;
	}
	@Column(name="Inc_NetProfit")
	public double getNp() {
		return np;
	}
	@Column(name="Inc_NonOperatingIncome")
	public double getNoi() {
		return noi;
	}
	@Column(name="Inc_OperatingCost")
	public double getOc() {
		return oc;
	}
	@Column(name="Inc_OperatingIncome")
	public double getOi() {
		return oi;
	}
	@Column(name="Inc_OperatingProfit")
	public double getOp() {
		return op;
	}
	@Column(name="Inc_TotalProfit")
	public double getTp() {
		return tp;
	}
	@Column(name="Inc_Year")
	public int getYear() {
		return year;
	}
	
	
	/*set方法*/
	public void setCompany(Company company) {
		this.company = company;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public void setIte(double ite) {
		this.ite = ite;
	}
	public void setNp(double np) {
		this.np = np;
	}
	public void setNoi(double noi) {
		this.noi = noi;
	}
	public void setOc(double oc) {
		this.oc = oc;
	}
	public void setOi(double oi) {
		this.oi = oi;
	}
	public void setOp(double op) {
		this.op = op;
	}
	public void setTp(double tp) {
		this.tp = tp;
	}
	public void setYear(int year) {
		this.year = year;
	}
	
	
	
}
